//
//  ChooseRoomTableViewCell.h
//  Fangmm
//
//  Created by 阮琦 on 16/3/2.
//  Copyright © 2016年 com.fangmm. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol ChooseRoomCellDelegate <NSObject>
@optional
- (void)textFieldBeginEditing;
- (void)textFieldEndEditing;
- (void)alert;
@end

@interface ChooseRoomTableViewCell : UITableViewCell <UITextFieldDelegate>
@property (weak, nonatomic) IBOutlet UIButton *aRoomChooseButton;
@property (weak, nonatomic) IBOutlet UIButton *bRoomChooseButton;
@property (weak, nonatomic) IBOutlet UIButton *cRoomChooseButton;
@property (weak, nonatomic) IBOutlet UIView *firstLineView;
@property (weak, nonatomic) IBOutlet UIView *secondLineView;
@property (weak, nonatomic) IBOutlet UIView *myRoomView;
@property (weak, nonatomic) IBOutlet UILabel *firstRoomLabel;
@property (weak, nonatomic) IBOutlet UITextField *firstPriceTextfield;
@property (weak, nonatomic) IBOutlet UILabel *secondRoomLabel;
@property (weak, nonatomic) IBOutlet UITextField *secondPriceTextfield;
@property (weak, nonatomic) IBOutlet UILabel *minePriceLabel;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *firstViewHeight;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *secondViewHeight;

@property (strong, nonatomic) id <ChooseRoomCellDelegate> delegate;

@property (assign, nonatomic) NSInteger houseCount;
@property (assign, nonatomic) NSInteger minSingleRent;
@property (assign, nonatomic) NSInteger wholeRent;
@property (assign, nonatomic) NSInteger firstLineRent;
@property (assign, nonatomic) NSInteger secondLineRent;
@end
